home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- * Generated by OEGen.
- * Comments....... This file contains the class definitions for the user-
- * defined classes derived from PersistClass.
- * Automatically generated.
- *
- ***************************************************************************/
-
- #ifndef _DBCLASSOEH_
- #define _DBCLASSOEH_
-
- #include "objeng.hpp"
-
- //------------------------------------------------------------
- class Client : public PersistClass {
- protected:
- long id;
- char fname[13];
- OEList *tests;
- virtual int Retrieve();
- public:
- Client();
- Client(Client &val) : PersistClass() { operator=(val); }
- ~Client() {
- if ((tests != NULL) && (tests->DeleteOK() == TRUE)) delete tests; }
- Client &operator=(const Client&);
- virtual int LinkToKey(int, int);
- virtual int Store();
- // Data access functions to maintain encapsulation
- void Setid(long inid) { id = inid; }
- void Setfname(char *infname) { strcpy(fname, infname); }
- const long& Getid() { return id; }
- const char* Getfname() { return fname; }
- OEList* Gettests() { return tests; }
- };
-
-
- //------------------------------------------------------------
- class Test : public PersistClass {
- protected:
- long id;
- long uid;
- float weight;
- short score;
- struct tm date;
- float height;
- virtual int Retrieve();
- public:
- Test();
- Test(Test &val) : PersistClass() { operator=(val); }
- ~Test() { }
- Test &operator=(const Test&);
- virtual int LinkToKey(int, int);
- virtual int Store();
- // Data access functions to maintain encapsulation
- void Setid(long inid) { id = inid; }
- void Setuid(long inuid) { uid = inuid; }
- void Setweight(float inweight) { weight = inweight; }
- void Setscore(short inscore) { score = inscore; }
- void Setdate(struct tm &indate)
- {
- date.tm_mday = indate.tm_mday;
- date.tm_mon = indate.tm_mon;
- date.tm_year = indate.tm_year;
- }
- void Setheight(float inheight) { height = inheight; }
- const long& Getid() { return id; }
- const long& Getuid() { return uid; }
- const float& Getweight() { return weight; }
- const short& Getscore() { return score; }
- const struct tm& Getdate() { return date; }
- const float& Getheight() { return height; }
- };
-
-
-
- #endif